package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Image;
import tech.aistar.mapper.EvaluateMapper;
import tech.aistar.mapper.ImageMapper;
import tech.aistar.service.IImageService;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: shuaiguo
 * @Date: 2020/10/01/17:42
 * @Description:
 */
@Service
public class ImageImpl implements IImageService {
    @Autowired
    private ImageMapper imageMapper;
    @Override
    public List<Image> selectAll() {
        return imageMapper.selectAll();
    }

    @Override
    public void insert(Image image) {
imageMapper.insert(image);
    }

    @Override
    public void updateByPrimaryKey(Image image) {
imageMapper.updateByPrimaryKey(image);
    }

    @Override
    public void deleteByPrimaryKey(Integer id) {
imageMapper.deleteByPrimaryKey(id);
    }
}
